/* 全屏背景 */
.login-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #fde68a 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 居中卡片容器 */
.login-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  width: min(960px, 92vw);
  min-height: 480px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(31, 41, 55, 0.15);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(140%) blur(8px);
  box-sizing: border-box;
}

/* 可选增强的卡片叠加背景效果 */
.login-card.auto-bg {
  background-image:
    linear-gradient(145deg, rgba(99, 102, 241, 0.06), rgba(16, 185, 129, 0.06));
  background-blend-mode: overlay;
}

/* 左侧 Banner */
.login-left {
  position: relative;
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 40%, #22d3ee 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-left .banner {
  width: 70%;
  max-width: 380px;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.2));
}

/* 右侧表单 */
.login-right {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}
.login-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  color: #111827;
  margin: 0 0 18px 0;
}
.login-title .logo {
  vertical-align: middle;
}
.login-title span { white-space: nowrap; }

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input.with-prefix {
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 6px 10px;
  background: #fff;
}
.input.with-prefix .prefix {
  margin-right: 8px;
  font-size: 16px;
}
.input.with-prefix input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 6px;
  font-size: 15px;
  background: transparent;
}
.input.with-prefix:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.captcha-img {
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 2px 8px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #374151;
  user-select: none;
}

.error-tip {
  color: #ef4444;
  font-size: 13px;
}

.btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.btn {
  height: 40px;
  min-width: 110px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  -webkit-appearance: none;
}
.btn.primary {
  background: #6366f1;
  color: #fff;
}
.btn.primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.btn.ghost {
  background: transparent;
  color: #111827;
  border-color: #e5e7eb;
}
.btn.ghost:hover {
  background: #f9fafb;
}

.login-footer {
  margin-top: 18px;
  color: #6b7280;
  font-size: 12px;
}

/* 响应式 */
@media (max-width: 860px) {
  .login-card { grid-template-columns: 1fr; }
  .login-left { display: none; }
}

/* 小高度设备适配，避免溢出 */
@media (max-height: 640px) {
  .login-card {
    min-height: auto;
  }
  .login-right {
    padding: 24px 20px;
  }
}